/**
 * @fileOverview The "title" plugin. 
 */
(function() {
   VED.plugins.add( 'title', {
      // lang: 'en,ru', // %REMOVE_LINE_CORE%

      init: function( editor ) {

         editor.on( 'uiSpace', function( event ) {
            if ( event.data.space == 'title' ) {
               var labelId = VED.tools.getNextId(),
                   title_text = editor.config.field_text || editor.lang.editor;

               var output = [
                  '<label for="' + editor.ui.spaceId( 'content' ) + '" role="presentation">',
                     '<span id="ved_' + editor.name + '_label" class="name">' + title_text + '</span>',
                     editor.config.field_filling ? '<span class="filling-star">*</span>' : '',
                  '</label>'
               ];
               event.data.html += output.join( '' );
            }
         });

      }
   });

})();





